package config

import "fmt"

//连接consul的ip、端口
type Consul struct {
	IP          string   `yaml:"ip"`
	Port        int      `yaml:"port"`
	ServiceName []string `yaml:"service_name"`
}

func (c *Consul) URL() string {
	return fmt.Sprintf("%s:%d", c.IP, c.Port)
}
